<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
                xmlns:s="http://jboss.com/products/seam/taglib"
                xmlns:ui="http://java.sun.com/jsf/facelets"
                xmlns:f="http://java.sun.com/jsf/core"
                xmlns:h="http://java.sun.com/jsf/html"
                xmlns:rich="http://richfaces.org/rich"
                xmlns:a="http://richfaces.org/a4j">
               
	<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />   
<head>
	<style type="text/css">
		.fontStyle {
			font-family: "宋体";
			font-size:15px;
		}
	</style>
</head>           
<body>
	<h:messages globalOnly="true" styleClass="message"/>
    <rich:panel>
    	<div class = "fontStyle">
        <f:facet name="header">添加新属性</f:facet>
        <h:form>
        	<table>
	            <tr>
	            	<td>商品属性名称</td>				
					<td>
						<h:inputText id="attribute" value="#{newAttribute.attributeName}" required="true" />
					</td>
				</tr>

	            <tr>
	              	<td>属性值描述<em>*</em>	</td>	
					<td>
						<h:inputText id="descripe" value="#{newAttribute.descripe}" required="true" />
					</td>						
	            </tr>
	            <tr>
	              	<td>是否显示<em>*</em></td>	
					<td>
						<h:inputText id="isShow" value="#{newAttribute.isShow}"  required="true" />
					</td>	
					<td>&nbsp;&nbsp;&nbsp;* 1 表示显示，0 表示不显示 *</td>					
	            </tr>
	             <tr>   			  
	            	<td colspan = "2" >
	            		<br/>
	            		<h:commandButton id="addAttribute" value="提交" 
	                             action="#{addAttribute.addNewAttribute}"/> 
	            	
	            	</td>
	             </tr>                
           </table>
        </h:form>
        </div>
    </rich:panel>
</body>
</html>




